package cn.yougou.vo;


import cn.yougou.pojo.YgStorage;

import java.io.Serializable;
import java.util.Date;

/**
 * 图片实体类
 */
public class YgStorageVo implements Serializable {

    /**
     * id
     */
    private Integer id;

    /**
     * 图片名
     */
    private String name;

    /**
     *  图片大小
     */
    private Integer size;

    /**
     * 图片类型
     */
    private String type;

    /**
     * 远程地址
     */
    private String url;

    /**
     * 增加时间
     */
    private String addTime;

    /**
     * 修改时间
     */
    private String updateTime;

    public YgStorageVo(){

    }

//    public YgStorageVo(YgStorage ygStorage){
//        this.name = ygStorage.getName();
//        this.size = ygStorage.getSize();
//        this.type = ygStorage.getType();
//        this.url = ygStorage.getUrl();
//        this.addTime = DateUtil.getSdf(ygStorage.getAddTime());
//        this.updateTime = DateUtil.getSdf(ygStorage.getUpdateTime());
//    }

    public YgStorageVo(Integer id,String name, Integer size, String type, String url, String addTime, String updateTime) {
        this.id = id;
        this.name = name;
        this.size = size;
        this.type = type;
        this.url = url;
        this.addTime = addTime;
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


    @Override
    public String toString() {
        return "YgStorageVo{" +
                "id=" + id +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", name='" + name + '\'' +
                ", size=" + size +
                ", type='" + type + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
